package com.yiidata.rpc.rmi;

import java.rmi.Naming;

/**
 * <pre>
 *
 * Created by zhenqin.
 * User: zhenqin
 * Date: 2018/1/6
 * Time: 12:30
 * Verdor: NowledgeData
 * To change this template use File | Settings | File Templates.
 *
 * </pre>
 *
 * @author zhenqin
 */
public class RMIHelloWorldClient {


    public static void main(String[] args) throws Exception {
        try {
            RMIHelloWorldProtocol h = (RMIHelloWorldProtocol)Naming.lookup("rmi://localhost:8088/hello");
            System.out.println(h.sayHello(" rmi"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
